pp108 : showSOAPFault() Method

showSOAPFault() Method


This method displays SOAP faults.

Syntax

application.showSOAPFault(oSOAPFaultEvent);

Parameters

Parameter

Description

oSOAPFaultEvent

Required. Denotes a SOAPFaultEvent object.


Return Value


Returns no value.

Remarks


The SOAP fault message displays a button to close it.

You can customize the SOAP Fault message. To do this, set the showError event object of the onsoapFault event of Busdataisland to False and cancel the default error message. Edit the fault Code and fault String event objects of the onsoapfault event of Busdataisland , and invoke application.showSOAPFault()with the new fault node as the input parameter.

Example

function showSOAPFaultMessage()
{
   	var faultObject = application.event;
   	faultObject.showError = false;
   	faultObject.faultCode = "Custom Fault Code";
   	faultObject.faultString = "Custom Fault String";
   	application.showSOAPFault(faultObject);
}